@extends('default.mobile.layouts.personalPublic')
@section('title','技能专长-'.Site::get('webname'))
{{--首页css--}}
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/mobile/personal/common.css')}}">
    <link rel="stylesheet" href="{{asset('/default/css/mobile/jquery/select.css')}}">
@endsection
{{--头部标签--}}
@section('tag','技能专长')
@section('link') href="{{url('mobile/personal/resume_manage?parameter=skill&resume_id='.$resumeSkill->resume_id)}}" @endsection

{{--主体内容--}}
@section('content')
    <div class="fill" id="fill" style="overflow: hidden">
        <div class="form_info" id="form_info">
            <form action="" onsubmit="return checkSkill('#skillForm','/mobile/personal/edit_skill')"
                    method="post" id="skillForm" name="skillForm">
                {{csrf_field()}}
                <input type="hidden" name="resume_id" id="resume_id"  value="{{$resumeSkill->resume_id}}">
                <input type="hidden" name="id" id="id"  value="{{$resumeSkill->id}}">
                <dl>
                    <dt>技能名称<span class="asterisk">*</span></dt>
                    <dd><input type="text" name="skillname" id="skillname"  value="{{$resumeSkill->skillname}}" placeholder="请输入技能名称" autocomplete="off"></dd>
                </dl>
                <dl class="arrow" id="degree_select">
                    <input type="hidden" name="degree" value="{{$resumeSkill->degree}}" id="degree" />
                    <dt>熟练程度<span class="asterisk">*</span></dt>
                    <dd><span class="select_text">请选择熟练程度</span></dd>
                </dl>
                <div class="form_sub"><input type="submit" id="sub" value="保存"></div>
            </form>
        </div>
    </div>
@endsection

@section('footerjs')
    @parent
    <script type="text/javascript" src="{{asset('/default/js/mobile/jquery/jquery.select.js')}}"></script>
    <script type="text/javascript" src="{{Resources::jsOption('resume')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/mobile/personal/resume_manage.js')}}"></script>
    <script>
        $(function(){
            var fill = $("#fill").find('#form_info');
            //熟练程度
            fill.find("#degree_select").select({
                select_title:'熟练程度',                //标题值
                hidden: '#degree',                   //select隐藏表单值
                opt_data:option_degree               //select选项值（数组json对象）
            });
        });
    </script>
@endsection